package com.un.ebs.sale.dto;

import com.un.ebs.sale.enums.SaleOrderTypeEnum;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * Add dto.
 * </p>
 *
 * @author liubo
 * @since 2020-05-23
 */
@Data
public class SaleOrderAddDto {

    private String contractCode;

    @NotNull(message = "请选择客户。")
    private String customerEntId;

    private String personnelId;

    private Date planDeliverDate;

    @NotNull(message = "请指定订单类型。")
    private SaleOrderTypeEnum orderType;

    private String remark;

    @NotNull(message = "订单明细不能为空。")
    private List<SaleOrderItemDto> items;
}